package com.develope.plant.service;
/*
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.PropertyInfo;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;
*/

public class SoapHelper {
	public static final String SOAP_ACTION = "http://14.0.18.225/GetUserParcels";
	public static final String NAMESPACE = "http://14.0.18.225/";
	public static final String METHOD_NAME = "GetUserParcels";
	public static final String URL = "http://14.0.18.225/webservice.asmx?wsdl";
	
}
	
/*	// operation name

	public SoapHelper() {
		
	}
		
	public String Call(String UserName){
		SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
		PropertyInfo pi=new PropertyInfo();
		    pi.setName("UserName");
			pi.setValue(UserName);
			pi.setType(String.class);
			request.addProperty(pi);
	//		pi=new PropertyInfo();
	//		pi.setName("b");
	//		pi.setValue(b);
	//		pi.setType(Integer.class);
	//		request.addProperty(pi);
			
		SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
		envelope.dotNet = true;
		
		envelope.setOutputSoapObject(request);
		
		HttpTransportSE httpTransport = new HttpTransportSE(URL);
		Object response = null;
		try{
			httpTransport.call(SOAP_ACTION, envelope);
			response = envelope.getResponse();
		}
		catch (Exception exception){
			response=exception.toString();
		}
		return response.toString();
	}
} */
